<template>
  <AppTopnav />
  <AppHeader></AppHeader>
  <!-- 吸顶头部 -->
  <AppHeaderSticky />
  <!-- 二级路由 -->
  <router-view></router-view>
  <AppFooter></AppFooter>
</template>

<script>
import AppTopnav from "@/components/app-topnav";
import AppHeader from "@/components/app-header";
import AppFooter from "../components/app-footer.vue";
import { useStore } from "vuex";
import AppHeaderSticky from "@/components/app-header-sticky.vue";
export default {
  name: "xtx-layout",
  components: { AppTopnav, AppHeader, AppFooter, AppHeaderSticky },
  setup() {
    const store = useStore();
    store.dispatch("category/getList");
  },
};
</script>
<style scoped lang="less"></style>
